﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xiaowei.ResponseHandlers
{
    public static class ResponseHandlerRegister
    {
        public static void RegisterResponseHandlers(VoiceAI.VoiceAIManager manager)
        {
            if (manager == null) return;
            manager.RegisterDefaultResponseAction(DefaultResponseHandler.Handle);
            manager.RegisterResponseAction(VoiceAI.ResponseType.PCControl,PCControlResponseHandler.Handle);
            manager.RegisterResponseAction(VoiceAI.ResponseType.OpenApp, OpenAppResponseHandler.Handle);
            manager.RegisterResponseAction(VoiceAI.ResponseType.Alarm, AlarmResponseHandler.Handle);
            manager.RegisterResponseAction(VoiceAI.ResponseType.DriverList, DriverListResponseHandler.Handle);
            manager.RegisterResponseAction(VoiceAI.ResponseType.Warranty, WarrantyResponseHandler.Handle);
            manager.RegisterResponseAction(VoiceAI.ResponseType.MaintainPosition, MaintainPositionResponseHandler.Handle);
            manager.RegisterResponseAction(VoiceAI.ResponseType.SaleHelp, SaleHelpResponseHandler.Handle);
            manager.RegisterResponseAction(VoiceAI.ResponseType.Weather, WeatherResponseHandler.Handle);
            manager.RegisterResponseAction(VoiceAI.ResponseType.PlayControl, PlayControlResponseHandler.Handle);
            manager.RegisterResponseAction(VoiceAI.ResponseType.IOT, IOTResponseHandle.Handle);
        }
    }
}
